Eplan Platform API
Eplan.EplApi.HEServices Namespace / Insert Class / PageMacro Method / PageMacro(PageMacro,Project,Boolean[],NumerationMode) Method
Page macro with will be inserted into project. Can not be null.
Project into with page macro will be inserted. Can not be null.
Defines whether an existing page is to be overwritten when a page macro is being inserted. Order of elements corresponds with order of elements in Eplan.EplApi.DataModel.MasterData.PageMacro.Pages. If null is passed all pages will not be overwritten.
Numeration mode.

PageMacro(PageMacro,Project,Boolean[],NumerationMode) Method
Inserts a page macro into project. User can specify which pages can be overwritten over existing pages in project.
Syntax

Parameters

oMacro
Page macro with will be inserted into project. Can not be null.
oProject
Project into with page macro will be inserted. Can not be null.
arrOverwritePages
Defines whether an existing page is to be overwritten when a page macro is being inserted. Order of elements corresponds with order of elements in Eplan.EplApi.DataModel.MasterData.PageMacro.Pages. If null is passed all pages will not be overwritten.
nNumerationMode
Numeration mode.

Return Value

Inserted pages and functions which were not placed (with null .Page property)
Exceptions
ExceptionDescription
Null was set to a parameter.
Thrown in case of invalid parameters.
The internal interface can not be append. Operation failed.
An error occurred during inserting the macro. Please refer to the error message.
Remarks
User can determine a name for each page under which it will be inserted. This is done by setting new name to page from Eplan.EplApi.DataModel.MasterData.PageMacro.Pages. See example.
See Also